import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LayoutPassportComponent } from '@layout/passport/passport.component';
import { PassportLoginComponent } from './login/login.component';
import { PassportRegisterComponent } from './register/register.component';
import { PassportShouldLoginComponent } from './should-login/should-login.component';


const routes: Routes = [
	{
		path: '',
		component: LayoutPassportComponent,
		children: [
			{
				path: 'login',
				component: PassportLoginComponent,
			},
			{
				path: 'register',
				component: PassportRegisterComponent,
			}
			,
			{
				path: 'should-login',
				component: PassportShouldLoginComponent,
			}
		]
	}
];


@NgModule({
	imports: [RouterModule.forChild(routes)]
})
export class PassportRoutingModule { }